import request from '@/utils/request';

const setData = (className, objects) => request.Object(className).setData(objects);
const deleteData = (className, objectIds) => request.Object(className).deleteData(objectIds);
const fentchData = (className, parmas) => request.Query(className).getData(parmas);
const test = (className, parmas, method) => request.Query(className).getData(parmas, {
  method,
});
const test1 = (username, password) => request.User().logIn(username, password);

const test3 = (className, objects) => request.Object(className).deleteData(objects);

export default {
  test,
  test1,
  setData,
  deleteData,
  fentchData,
  test3,
};
